import { Button, Form } from 'antd';
import { t } from 'i18next';
import React from 'react';

interface SubmitBtnProps {
	onReset: () => void;
}

const SubmitBtn = (props: SubmitBtnProps) => {
	const { onReset } = props;
	return (
		<Form.Item className="submit-btn">
			<Button type="default" onClick={onReset}>
				{t('cancel')}
			</Button>
			<Button type="primary" htmlType="submit">
				{t('confirm')}
			</Button>
		</Form.Item>
	);
};

export default SubmitBtn;
